package com.example.demo.dao;

import java.util.List;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import com.example.demo.model.MyNews;


@Repository
public interface MyNewsRepository extends ElasticsearchRepository<MyNews, String> {
    public List<MyNews> findByTitle(String title);    
}